[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
ASORT() Array sort with NIL elements out of order.
Clipper Version 1.03 dtd 09/15/90.
Problem Statement
When ASORT() is used on an array containing NIL elements, the last
non-NIL data will appear in the last element; e.g., AA, BB, NIL,
NIL, CC.
Cause
Unknown.
Work Around(s)
After sorting an array which contains NIL elements, perform the
following operation:
FOR i = LEN(aArray) TO 1 STEP -1
IF aArray[i] = NIL
ADEL(aArray,i)
ENDIF
NEXT
which will place all NIL elements at the end of the array; e.g.,
AA, BB, CC, NIL, NIL.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson